package com.jack006.article.service;

import com.jack006.utils.PagedGridResult;

/**
 * @Classname CommentPortalService
 * @Description 门户文章留言定义
 * @Date 2021-07-03 14:39
 * @Created by jack
 */
public interface CommentPortalService {


    /**
     * 创建评论
     * @param articleId
     * @param fatherId
     * @param comment
     * @param userId
     * @param nickName
     * @param userFace
     */
    void createComments(String articleId,
                        String fatherId,
                        String comment,
                        String userId,
                        String nickName,
                        String userFace);

    /**
     * 查询文章评论数
     * @param articleId
     * @param page
     * @param pageSize
     * @return
     */
    PagedGridResult queryArticleComments(String articleId, Integer page, Integer pageSize);

    /**
     * 删除评论
     * @param writerId
     * @param commentId
     */
    void deleteComment(String writerId, String commentId);

    /**
     * 查询评论管理列表
     * @param writerId
     * @param page
     * @param pageSize
     * @return
     */
    PagedGridResult queryWriterCommentsMng(String writerId, Integer page, Integer pageSize);
}

